$.ajaxPrefilter(function (option) {
  if (option.url.startsWith("/my")) {
    // 证明有权限请求头预处理中先处理
    option.headers = { Authorization: sessionStorage.getItem("token") };
  }
  option.url = "http://www.liulongbin.top:3007" + option.url;

  option.complete = function (res) {
    const { status, message } = res.responseJSON;
    if (status === 1 && message === "身份认证失败！") {
      sessionStorage.removeItem("token");
      location.href = "login.html";
    }
  };
});
